!function(t) {
    var e = null;
    e = setInterval(function() {
        if (t.LiveKit) {
            var n = document.getElementById("J---TK-load");
            t.GUID = function() {
                return n.getAttribute("data-guid") ? n.getAttribute("data-guid") : void 0
            } (),
            t.LiveKit.login(),
            t.LiveKit.once("session:refreshed",
            function(t) {
                var e = document.createEvent("HTMLEvents");
                e.initEvent("user_status_login", !1, !0);
                var n = document.getElementById("J---TK-load");
                n.setAttribute("data-userid", t.id),
                n.dispatchEvent(e)
            }),
            t.LiveKit.once("session:error",
            function() {
                location.reload()
            }),
            clearInterval(e)
        }
    },
    200)
} (window);